﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using University.Workshop.Model;
using University.Workshop.Presenters;
using University.Workshop.Presenters.MedicalSuppliesFolder;

namespace University.Workshop.WinApp
{
    public partial class RegisterMedicalSupplies : Form, IMedicalSupplies
    {
        PresenterMedicalSupplies presenter;

        public RegisterMedicalSupplies()
        {
            InitializeComponent();
            presenter = new PresenterMedicalSupplies(this);
        }

        private void button1_Click(object sender, EventArgs e)
        {
            MessageBox.Show(presenter.AddMedicalSupply());
        }

        private void button2_Click(object sender, EventArgs e)
        {
            this.Close();
        }

        public string ItemName
        {
            get
            {
                return textBox1.Text;
            }
            set
            {
                throw new NotImplementedException();
            }
        }

        public string ItemId
        {
            get
            {
                return textBox2.Text;
            }
            set
            {
                throw new NotImplementedException();
            }
        }

        public string Lot
        {
            get
            {
                return textBox3.Text;
            }
            set
            {
                throw new NotImplementedException();
            }
        }

        public DateTime ExpirationDate
        {
            get
            {
                return expirationDate.SelectionEnd.Date;
            }
            set
            {
                throw new NotImplementedException();
            }
        }

        public string QuantityAvailable
        {
            get
            {
                return textBox5.Text;
            }
            set
            {
                throw new NotImplementedException();
            }
        }
       
    }
}
